package com.x.linx.fenfencard.model.meta;

import com.android.volley.Response;
import com.android.volley.VolleyError;
import com.x.linx.utils.D;

public class GenerateErrorListener implements Response.ErrorListener {
	IRequestCallback callback;
	
	public GenerateErrorListener(IRequestCallback callback){
		this.callback = callback;
	}

	@Override
	public void onErrorResponse(VolleyError error) {
		// error
		D.d("Error.Response", error.getMessage());
		callback.fail(error.getMessage());		
	}

}
